<?php
namespace App\Models;

use App\Models\Scope\NeighborHelpCommendScope;

class NeighborHelpCommend extends CommonModel {
	protected $table = 'neighbor_help_commend';
	
	
	public function scopePagesParse($query){
		$data = $query->pages();
		return $data;
	}
	
	/**
	 * 全局筛选作用域
	 */
	protected static function boot()
	{
		parent::boot();
		static::addGlobalScope(new NeighborHelpCommendScope());
	}
}